package cn.bugio.task11.controller;
import cn.bugio.task11.po.User;
import cn.bugio.task11.po.UserVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class OrdersController {

	@RequestMapping("/toOrder")
	public String toOrder( ) {
	    return "order";
	}

	@RequestMapping("/showOrders")
	@ResponseBody
	public UserVO getProducts(UserVO users){
		return users;
	}
}
